//
//  ViewController.swift
//  emotionKeyBoard
//
//  Created by 路峻鉴 on 15/10/17.
//  Copyright © 2015年 路峻鉴. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
    @IBOutlet weak var textView: UITextView!
    private lazy var keyBoard: emotionViewController = emotionViewController { [weak self](emotion) -> () in
        self?.textView.insertEmotion(emotion)
    }
    override func viewDidLoad() {
        super.viewDidLoad()
        textView.inputView = keyBoard.view
    }
        @IBAction func dfsf(sender: AnyObject) {
        print(textView.emoticonText)
    }
}

